package org.sy.lab.Java7并发编程实战.五ForkJoin框架.五取消任务;

import java.util.Random;

public class ArrayGenerator {
	public int[] generateArray(int size) {
		int array[] = new int[size];
		Random random = new Random();
		for(int i=0; i<size; i++) {
			array[i] = random.nextInt(10);
		}
		return array;
	}
}
